home *** CD-ROM | disk | FTP | other *** search
- Path: news.mty.itesm.mx!academ10!al522331
- From: al522331@academ10.mty.itesm.mx (RAFAEL ALGARA TORRE)
- Newsgroups: comp.lang.c++
- Subject: C++
- Date: 1 Mar 1996 17:44:53 GMT
- Organization: ITESM Campus Monterrey . DINF-DTCI
- Message-ID: <4h7d2l$jqt@news.mty.itesm.mx>
- NNTP-Posting-Host: 131.178.2.172
- X-Newsreader: TIN [version 1.2 PL2]
-
- If you have experience in any other language,
- there won't be a big difference, I think something
- like this will do for you:
-
-
- unsigned int factorial (int a)
- { if (a==0) factorial=1
- else factorial=a*factorial(n-1); }
-
- --
-
-
- ------------------------------------------
- Rafael Algara Torre
- ITESM Monterrey, Mexico
- al522331@academ01.mty.itesm.mx
- ------------------------------------------
-